Optimal. Leaf size=237 \[ \frac {35 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{1024 \sqrt {2} a^{9/2} d}+\frac {853 \sin (c+d x)}{3072 a^3 d \sqrt {\sec (c+d x)} (a \cos (c+d x)+a)^{3/2}}-\frac {187 \sin (c+d x)}{768 a^2 d \sqrt {\sec (c+d x)} (a \cos (c+d x)+a)^{5/2}}-\frac {19 \sin (c+d x)}{96 a d \sec ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{7/2}}-\frac {\sin (c+d x)}{8 d \sec ^{\frac {5}{2}}(c+d x) (a \cos (c+d x)+a)^{9/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.64, antiderivative size = 237, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {4222, 2765, 2977, 2978, 12, 2782, 205} \[ \frac {853 \sin (c+d x)}{3072 a^3 d \sqrt {\sec (c+d x)} (a \cos (c+d x)+a)^{3/2}}-\frac {187 \sin (c+d x)}{768 a^2 d \sqrt {\sec (c+d x)} (a \cos (c+d x)+a)^{5/2}}+\frac {35 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{1024 \sqrt {2} a^{9/2} d}-\frac {19 \sin (c+d x)}{96 a d \sec ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{7/2}}-\frac {\sin (c+d x)}{8 d \sec ^{\frac {5}{2}}(c+d x) (a \cos (c+d x)+a)^{9/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 205
Rule 2765
Rule 2782
Rule 2977
Rule 2978
Rule 4222
Rubi steps
\begin {align*} \int \frac {1}{(a+a \cos (c+d x))^{9/2} \sec ^{\frac {7}{2}}(c+d x)} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\cos ^{\frac {7}{2}}(c+d x)}{(a+a \cos (c+d x))^{9/2}} \, dx\\ &=-\frac {\sin (c+d x)}{8 d (a+a \cos (c+d x))^{9/2} \sec ^{\frac {5}{2}}(c+d x)}-\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (\frac {5 a}{2}-7 a \cos (c+d x)\right )}{(a+a \cos (c+d x))^{7/2}} \, dx}{8 a^2}\\ &=-\frac {\sin (c+d x)}{8 d (a+a \cos (c+d x))^{9/2} \sec ^{\frac {5}{2}}(c+d x)}-\frac {19 \sin (c+d x)}{96 a d (a+a \cos (c+d x))^{7/2} \sec ^{\frac {3}{2}}(c+d x)}-\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\cos (c+d x)} \left (\frac {57 a^2}{4}-\frac {65}{2} a^2 \cos (c+d x)\right )}{(a+a \cos (c+d x))^{5/2}} \, dx}{48 a^4}\\ &=-\frac {\sin (c+d x)}{8 d (a+a \cos (c+d x))^{9/2} \sec ^{\frac {5}{2}}(c+d x)}-\frac {19 \sin (c+d x)}{96 a d (a+a \cos (c+d x))^{7/2} \sec ^{\frac {3}{2}}(c+d x)}-\frac {187 \sin (c+d x)}{768 a^2 d (a+a \cos (c+d x))^{5/2} \sqrt {\sec (c+d x)}}-\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {187 a^3}{8}-\frac {333}{4} a^3 \cos (c+d x)}{\sqrt {\cos (c+d x)} (a+a \cos (c+d x))^{3/2}} \, dx}{192 a^6}\\ &=-\frac {\sin (c+d x)}{8 d (a+a \cos (c+d x))^{9/2} \sec ^{\frac {5}{2}}(c+d x)}-\frac {19 \sin (c+d x)}{96 a d (a+a \cos (c+d x))^{7/2} \sec ^{\frac {3}{2}}(c+d x)}-\frac {187 \sin (c+d x)}{768 a^2 d (a+a \cos (c+d x))^{5/2} \sqrt {\sec (c+d x)}}+\frac {853 \sin (c+d x)}{3072 a^3 d (a+a \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}}-\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int -\frac {105 a^4}{16 \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx}{384 a^8}\\ &=-\frac {\sin (c+d x)}{8 d (a+a \cos (c+d x))^{9/2} \sec ^{\frac {5}{2}}(c+d x)}-\frac {19 \sin (c+d x)}{96 a d (a+a \cos (c+d x))^{7/2} \sec ^{\frac {3}{2}}(c+d x)}-\frac {187 \sin (c+d x)}{768 a^2 d (a+a \cos (c+d x))^{5/2} \sqrt {\sec (c+d x)}}+\frac {853 \sin (c+d x)}{3072 a^3 d (a+a \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}}+\frac {\left (35 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx}{2048 a^4}\\ &=-\frac {\sin (c+d x)}{8 d (a+a \cos (c+d x))^{9/2} \sec ^{\frac {5}{2}}(c+d x)}-\frac {19 \sin (c+d x)}{96 a d (a+a \cos (c+d x))^{7/2} \sec ^{\frac {3}{2}}(c+d x)}-\frac {187 \sin (c+d x)}{768 a^2 d (a+a \cos (c+d x))^{5/2} \sqrt {\sec (c+d x)}}+\frac {853 \sin (c+d x)}{3072 a^3 d (a+a \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}}-\frac {\left (35 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1}{2 a^2+a x^2} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right )}{1024 a^3 d}\\ &=\frac {35 \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{1024 \sqrt {2} a^{9/2} d}-\frac {\sin (c+d x)}{8 d (a+a \cos (c+d x))^{9/2} \sec ^{\frac {5}{2}}(c+d x)}-\frac {19 \sin (c+d x)}{96 a d (a+a \cos (c+d x))^{7/2} \sec ^{\frac {3}{2}}(c+d x)}-\frac {187 \sin (c+d x)}{768 a^2 d (a+a \cos (c+d x))^{5/2} \sqrt {\sec (c+d x)}}+\frac {853 \sin (c+d x)}{3072 a^3 d (a+a \cos (c+d x))^{3/2} \sqrt {\sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 6.10, size = 395, normalized size = 1.67 \[ \frac {2 \sin \left (\frac {c}{2}+\frac {d x}{2}\right ) \sqrt {\frac {1}{1-2 \sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}} \sqrt {1-2 \sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right )} \cos ^9\left (\frac {c}{2}+\frac {d x}{2}\right ) \left (1-\sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \sec ^2\left (\frac {1}{2} (c+d x)\right )\right )^{9/2} \left (\frac {1}{8} \left (\frac {1}{1-\sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \sec ^2\left (\frac {1}{2} (c+d x)\right )}+\frac {7}{6 \left (1-\sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \sec ^2\left (\frac {1}{2} (c+d x)\right )\right )^2}+\frac {35}{24 \left (1-\sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \sec ^2\left (\frac {1}{2} (c+d x)\right )\right )^3}+\frac {35}{16 \left (1-\sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \sec ^2\left (\frac {1}{2} (c+d x)\right )\right )^4}\right )+\frac {35 \sqrt {\cos ^2\left (\frac {1}{2} (c+d x)\right )} \csc \left (\frac {c}{2}+\frac {d x}{2}\right ) \sin ^{-1}\left (\frac {\sin \left (\frac {c}{2}+\frac {d x}{2}\right )}{\sqrt {\cos ^2\left (\frac {1}{2} (c+d x)\right )}}\right )}{128 \left (1-\sin ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \sec ^2\left (\frac {1}{2} (c+d x)\right )\right )^{9/2}}\right )}{d \sqrt {\cos ^2\left (\frac {1}{2} (c+d x)\right )} (a (\cos (c+d x)+1))^{9/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.16, size = 237, normalized size = 1.00 \[ -\frac {105 \, \sqrt {2} {\left (\cos \left (d x + c\right )^{5} + 5 \, \cos \left (d x + c\right )^{4} + 10 \, \cos \left (d x + c\right )^{3} + 10 \, \cos \left (d x + c\right )^{2} + 5 \, \cos \left (d x + c\right ) + 1\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}}{\sqrt {a} \sin \left (d x + c\right )}\right ) - \frac {2 \, {\left (853 \, \cos \left (d x + c\right )^{4} + 819 \, \cos \left (d x + c\right )^{3} + 455 \, \cos \left (d x + c\right )^{2} + 105 \, \cos \left (d x + c\right )\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{6144 \, {\left (a^{5} d \cos \left (d x + c\right )^{5} + 5 \, a^{5} d \cos \left (d x + c\right )^{4} + 10 \, a^{5} d \cos \left (d x + c\right )^{3} + 10 \, a^{5} d \cos \left (d x + c\right )^{2} + 5 \, a^{5} d \cos \left (d x + c\right ) + a^{5} d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (a \cos \left (d x + c\right ) + a\right )}^{\frac {9}{2}} \sec \left (d x + c\right )^{\frac {7}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.25, size = 354, normalized size = 1.49 \[ -\frac {\sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \left (-1+\cos \left (d x +c \right )\right )^{8} \cos \left (d x +c \right ) \left (853 \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \left (\cos ^{4}\left (d x +c \right )\right )+105 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\cos ^{3}\left (d x +c \right )\right ) \sin \left (d x +c \right )-34 \left (\cos ^{3}\left (d x +c \right )\right ) \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+315 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )-364 \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+315 \cos \left (d x +c \right ) \sin \left (d x +c \right ) \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right )-350 \cos \left (d x +c \right ) \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+105 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right )-105 \sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\right ) \sqrt {2}}{6144 d \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {7}{2}} \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {9}{2}} \sin \left (d x +c \right )^{17} a^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (a \cos \left (d x + c\right ) + a\right )}^{\frac {9}{2}} \sec \left (d x + c\right )^{\frac {7}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {1}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{7/2}\,{\left (a+a\,\cos \left (c+d\,x\right )\right )}^{9/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________